$OpenBSD: patch-libfreeipmi_driver_ipmi-openipmi-driver_c,v 1.1 2015/08/11 21:12:45 sthen Exp $
--- libfreeipmi/driver/ipmi-openipmi-driver.c.orig	Thu Jul 30 14:33:27 2015
+++ libfreeipmi/driver/ipmi-openipmi-driver.c	Thu Jul 30 14:33:48 2015
@@ -128,7 +128,7 @@ struct ipmi_recv
 #define IPMI_IOC_MAGIC             'i'
 #define IPMICTL_RECEIVE_MSG_TRUNC  _IOWR (IPMI_IOC_MAGIC, 11, struct ipmi_recv)
 #define IPMICTL_RECEIVE_MSG        _IOWR (IPMI_IOC_MAGIC, 12, struct ipmi_recv)
-#if defined(__FreeBSD__)
+#ifndef __LINUX__
 #define IPMICTL_SEND_COMMAND       _IOW (IPMI_IOC_MAGIC,  13, struct ipmi_req)
 #define IPMICTL_SET_MY_ADDRESS_CMD _IOW (IPMI_IOC_MAGIC,  17, unsigned int)
 #else
